FluentBooking\App\Services\TimeSlotService D

Total Complexity 209
Dependencies 11
Dependents 1
Total lines 1,099
Lines of code 786
Logical lines of code 521
Comment lines 41
Methods 39
Properties 3

Methods 39

Method Rating Maintainability Complexity Lines of code
getRangedValidSlots()
A
40 14 57
processBookings()
A
41 14 54
maybeBookingDurationDayLimit()
A
45 13 39
maybeBookingFrequencyLimitRanges()
A
44 12 44
isSlotAvailable()
A
50 13 27
maybeBookingFrequencyDayLimit()
A
47 12 36
maybeBookingDurationLimitRanges()
A
46 11 39
createDateRangeArrayFromSlotConfig()
A
47 9 35
getWeekDaySlots()
A
49 9 28
convertSpots()
S
50 6 29
handleNextDaySlot()
S
52 6 22
handleNextDayOverrideSlot()
S
53 6 22
convertSlotSetsToFlat()
S
54 6 19
maybeDateOverrides()
S
58 6 15
getAvailableSpots()
S
54 5 20
processRemoteBookings()
S
56 5 19
isSlotExists()
S
56 5 18
getFilledWeeks()
S
55 5 18
isLocalBooking()
S
63 5 11
getCurrentDateRange()
S
57 4 17
convertSlotsByTimezone()
S
58 4 16
adjustStartDate()
S
59 4 14
removeOverrideSlots()
S
62 4 11
getDates()
S
57 3 15
getEnabledSlots()
S
65 4 9
maybeBookingPerDayLimitSlots()
S
59 3 14
getBookedSlots()
S
50 2 27
isSpotAvailable()
S
55 2 19
getBookingDurationTotal()
S
58 2 17
getBookingsTotal()
S
59 2 15
maybeDayLightSavingSlot()
S
66 2 8
mergeAndSortSlots()
S
64 2 10
maybeDayLightSavingTime()
S
67 2 7
getTimezoneInfo()
S
70 2 6
__construct()
S
74 1 5
getMaxBookingTimestamp()
S
75 1 4
extractMonthAndYear()
S
72 1 5
bookSlot()
S
66 1 9
sortDaySlots()
S
71 1 6